package com.alibaba.ai.service.impl;

import com.alibaba.ai.service.YUserService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.ai.entity.YUsers;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YUserServiceImpl implements YUserService {
   @Resource
    private com.alibaba.ai.dao.YUserMapper YUserMapper;

   @Transactional
    @Override
    public List<YUsers> demo() {

       return YUserMapper.demo();
    }

    @Transactional
    @Override
    public List<YUsers> getUserListByCount() {

       return YUserMapper.getUserListByCount();
    }

    @Transactional
    @Override
    public List<JSONObject> getUserByUserId(Integer yUsersId) {
        return YUserMapper.getUserByUserId(yUsersId);
    }

    @Transactional
    @Override
    public List<JSONObject> getUserRankByUserId(Integer yUsersId) {
        return YUserMapper.getUserRankByUserId(yUsersId);
    }

    @Override
    public List<JSONObject> getUserMoneyByUserId(Integer yUsersId) {
        return YUserMapper.getUserMoneyByUserId(yUsersId);
    }


}
